home *** CD-ROM | disk | FTP | other *** search
- import java.io.IOException;
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.CommandListener;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Form;
- import javax.microedition.lcdui.Image;
- import javax.microedition.lcdui.Screen;
- import javax.microedition.lcdui.StringItem;
- import javax.microedition.lcdui.Ticker;
-
- public class InfoForm extends Form implements CommandListener {
- private StringItem text;
- private Datum midlet;
- private Image logo;
-
- public InfoForm(String title) {
- super(title);
- ((Displayable)this).setCommandListener(this);
- Command selectLangCommand = new Command("Abbruch", 1, 0);
- ((Screen)this).setTicker(new Ticker("visit engelrico.de for fun and ProgrammingNews... "));
- String info = new String("Ein Programmm zum Untersuchen eines beliebigen Datums. Viel Spaß beim Rumspielen!");
- this.text = new StringItem("Info", info);
- ((Displayable)this).addCommand(selectLangCommand);
- ((Form)this).append(this.text);
-
- try {
- this.logo = Image.createImage("/images/logo_max.png");
- } catch (IOException var5) {
- }
-
- }
-
- public void commandAction(Command command, Displayable displayable) {
- if (command.getLabel().equals("Abbruch")) {
- this.midlet.viewStartForm();
- }
-
- }
-
- public void setMidlet(Datum m) {
- this.midlet = m;
- }
- }
-